local blaze = require "blaze"
local app = require "app"
local game = app.game.running

local Room = require "entities.Room"

local M = game.kbe.entity("SlotRoom", Room)

local slotlib = require "club.threecard.slotlib"

function M:__init__()
    Room.__init__(self)
end

-- 下注档位列表 UINT32_ARRAY
function M:set_bet_amounts(old)
    game.store.machine.on_bet_amounts({bet_amounts = self.bet_amounts})
    self.log.debug("set_bet_amounts"..blaze.dump(self.bet_amounts))
end

-- 卷轴信息数组 SlotReelInfoList
function M:set_reels(old)
    game.store.machine.on_reels({reels = self.reels})
    self.log.debug("set_reels"..blaze.dump(self.reels))
end

-- 赔付线信息列表 UNIT64_ARRAY
function M:set_paylines(old)
    game.store.machine.on_paylines({paylines = self.paylines})
    self.log.debug("set_paylines"..blaze.dump(self.paylines))
end

return M